cmake_minimum_required(VERSION 3.10)
project(CarAssignment)
set(CMAKE_CXX_STANDARD 17)

# 设置编码：源文件UTF-8，执行GBK
if(MSVC)
    add_compile_options(/source-charset:utf-8 /execution-charset:.936)
    add_compile_definitions(_SCL_SECURE_NO_WARNINGS)
endif()

add_executable(CarAssignment main.cpp car.cpp student.cpp assignment_utils.cpp)

include_directories(${CMAKE_SOURCE_DIR})

# Link filesystem library for MinGW/GCC
target_link_libraries(CarAssignment)